<!DOCTYPE html>
<html ng-app='test'>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script src="angular.js"></script>
    <script type="text/javascript">
      let mod= angular.module('test',[]);

      mod.controller('main',function($scope,$http){
        $http.get('data/1.txt').then(res=>{
          let data1=res.data;
          $http.get('data/2.txt').then(res=>{
              let data2=res.data;
              console.log(data1,data2);
          },()=>{
            alert('error');
          });
        },()=>{
          alert('error');
        });
      });
    </script>
  </head>
  <body ng-controller='main'>

  </body>
</html>
